package com.yuandian.management.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuandian.management.vo.AgentThresholdPojo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 阀值设置
 * 
 * @author fucx
 * @date 2020/06/10
 */
@Mapper
public interface AgentThresholdMapper extends BaseMapper<AgentThresholdPojo> {

    /**
     * 查询正常状态的阀值
     * 
     * @return
     */
    public List<AgentThresholdPojo> queryList();

    /**
     * 根据code获取阀值实体
     * 
     * @param thresholdCode
     * @return
     */
    public AgentThresholdPojo queryAgentThresholdByCode(String thresholdCode);

    /**
     * 根据Code更新阀值信息
     * 
     * @param threshold
     * @return
     */
    public int updateByCodeSelective(AgentThresholdPojo threshold);

}
